Encoding A Feature Vector For Pytorch Deep Learning